package io.zhaocy.springbootenable.annotation;

import java.lang.reflect.Method;

/**
 * Description:
 *
 * @Author: genezhao
 * @Date: 2018-07-13
 */
public class MyAnnoTest3 {

    @MyAnno
    public static void myMeth() {

        MyAnnoTest3 mat = new MyAnnoTest3();

        try {
            Method m = mat.getClass().getMethod("myMeth");

            MyAnno ma = m.getAnnotation(MyAnno.class);

            System.out.println(ma.str() + " " + ma.val());

        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        myMeth();
    }
}
